﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kaiser.Models;
using Kaiser.Modules.Hiner.Models.Order;
using Kaiser.Modules.Hiner.Models.Order.SearchModels;
using Kaiser.Modules.Hiner.Models.Product;
using Kaiser.Modules.Hiner.Models.Product.SearchModels;
using Kaiser.Services;
using System.Data;


namespace Kaiser.Modules.Hiner.Services
{
    public interface IOrderService: IServiceBase<OrderBase>
    {
        DataGrid<OrderBase> SearchOrder(OrderSearch search, PagingInfo pageinfo);

        /// <summary>
        /// 订单交付
        /// </summary>
        bool OrderDelivery(string orderId);

        void DeleteOrderDetail(string orderID);

        void InsertOrderDetail(OrderDetail model);

        IList<OrderDetail> GetOrderDetailList(string orderID);

        /// <summary>
        /// 确认订单
        /// </summary>
        /// <param name="orderId"></param>
        /// <returns></returns>
        bool OrderConfirm(string orderId);
    }
}
